﻿using System;

namespace ConsoleApp3
{
    public abstract class Student
    {
        public int id = 16;

        private readonly string name = "小灿";

        internal static int age = 19;

        protected string major = "软件";

    }

    public sealed class Student2
    {
        public readonly string name = "小v子";

        internal static int age = 19;


#pragma warning disable CS0628 // 在密封类中声明了新的保护成员
        protected static string major = "软件";
#pragma warning restore CS0628 // 在密封类中声明了新的保护成员


    }

    public static class Student3
    {
        public static int id = 12;

        private static readonly string name = "小豆腐";

        internal static int age = 19;
   
    }





    internal abstract class Teacher1
    {
        public int id = 16;

        private readonly string name = "小橘";

        internal static int age = 25;

        protected string major = "软件";
    }

    internal sealed class Teacher2
    {
        public int id = 19;

        private readonly string name = "橘";

        internal static int age = 24;

#pragma warning disable CS0628 // 在密封类中声明了新的保护成员
        protected string major = "软件";
#pragma warning restore CS0628 // 在密封类中声明了新的保护成员
    }

    internal static class Teacher3
    {
        public static int id = 35;
    
        internal static int age = 32;

    }


}
